import { createRouter,VueRouter, createWebHistory } from 'vue-router'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import User from '../views/user.vue'
import Organize from '../views/organize.vue'
import InsertUser from '../views/insertUser.vue'

const routes = [
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  {
    path: '/user',
    name: 'user',
    component: User
  },
  {
    path: '/organize',
    name: 'organize',
    component: Organize
  },
  {
    path: '/insertUser',
    name: 'insertUser',
    component: InsertUser
  },
  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
